package com.wicket.okrbff.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrbff.biz.service.SystemDockingService;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.util.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wicket.okrcomponent.integration.FwCompSystemDockingClient;
import com.wicket.okrcomponent.integration.dto.QueryDatabaseConfAnswerDetailComRespDto;
import com.wicket.okrcomponent.integration.dto.QueryDatabaseConfAnswerDetailComReqDto;
import com.wicket.okrframework.integration.FwBaseBusinessObjectClient;
import com.wicket.okrframework.integration.dto.QueryObjAttributeListComRespDto;
import com.wicket.okrframework.integration.dto.QueryObjAttributeListComReqDto;
import com.wicket.okrcomponent.integration.dto.ImplementImportExcelFileDataComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementImportExcelFileDataComReqDto;
import com.wicket.okrcomponent.integration.dto.BaseMetadataObjectPropertyDto;
import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrbff.common.util.CommonFunctionHelper;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Api(value = "SystemDocking", tags = { "SystemDocking" })
@RestController
// @RequestMapping("/oms/systemDocking/")
public class SystemDockingController {

  @Autowired
  SystemDockingService systemDockingService;
/**
   * B2执行导入excel文件数据(管理)
   * gen by moon at 3/23/2024, 8:02:21 PM
   */
    @PostMapping("/oms/mgt/systemDocking/implementImportExcelFileData")
    @ApiOperation(value = "B2执行导入excel文件数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementImportExcelFileDataRespDto> implementImportExcelFileData(@RequestBody(required=false) @Validated BffImplementImportExcelFileDataReqDto reqDTO){
        return OkrResult.success(systemDockingService.implementImportExcelFileData(reqDTO));
    }
}
